'use strict';

var router = function(path,callback) {
    if (path.length > 0) {
        var ActionFile = require("../../action/" + path[0]);
        if (ActionFile) {
            var file = new ActionFile();
            var fun = file.path[1];
            fun(callback);
        } else {
            console.log("无效的action");
        }
    }
};

module.exports.router = router;